//
//  GFShareSDKView.m
//  GFShareSDK
//
//  Created by 胡林虎 on 2017/8/5.
//  Copyright © 2017年 胡林虎. All rights reserved.
//

#import "GFShareSDKView.h"

@implementation GFShareSDKView

-(instancetype)initWithFrame:(CGRect)frame {

    self = [super initWithFrame:frame];
    if (self) {
        
        UIView *bgView =[[UIView alloc]initWithFrame:CGRectMake(0, 0, 100, 100)];
        bgView.backgroundColor = [UIColor redColor];
        [self addSubview:bgView];
        
        
        if (![WXApi isWXAppInstalled]) {
            bgView.backgroundColor = [UIColor yellowColor];
        }else  if (![WeiboSDK isWeiboAppInstalled]) {
            bgView.backgroundColor = [UIColor purpleColor];
        }else if (![QQApiInterface isQQInstalled]) {
            bgView.backgroundColor = [UIColor greenColor];
        }else {
        
        }
        
        
    }
    return self;


}


@end
